project( Logging )

SET(CMAKE_C_FLAGS_RELEASE "-DNDEBUG" CACHE STRING "Release options.")
SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG -ggdb" CACHE STRING "Debug options.")
SET(CMAKE_BUILD_TYPE release )

set( LIBRARY_OUTPUT_PATH ../lib )
set( EXECUTABLE_OUTPUT_PATH ../bin )

include_directories( ../include ../include/impl )

set( SRCS ../src/main.cpp ../src/Logger.cpp ../src/impl/FileHandler.cpp ../src/impl/DefaultFormatter.cpp )

add_library( Logging SHARED ../src/Logger.cpp ../src/impl/FileHandler.cpp ../src/impl/DefaultFormatter.cpp )
add_executable( logging ${SRCS} )
